package cn.gdrj.est.dao;

import cn.gdrj.est.entity.BrandClassifyRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BrandClassifyRelationDao {
    int deleteByPrimaryKey(Long id);

    int insert(BrandClassifyRelation record);

    int insertSelective(BrandClassifyRelation record);

    BrandClassifyRelation selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BrandClassifyRelation record);

    int updateByPrimaryKey(BrandClassifyRelation record);

    /**
     * 根据商品分类id查询品牌id: 没有被删除的
     */
    List<Long> listBrandIdByClassifyId(@Param("classifyId") Long classifyId,
                                       @Param("isDelete") Integer isDelete);
}
